﻿/* 5. Write a program that gets two numbers from the console and prints the greater of them. Don’t use if statements. */

using System;

public class GreaterOfTwo
{
    public static void Main()
    {
        double first;
        double second;
        
        Console.Write("First number = ");
        first = double.Parse(Console.ReadLine());
        Console.Write("Second number = ");
        second = double.Parse(Console.ReadLine());

        Console.WriteLine("Greater of last two numbers is {0}", Math.Max(first, second));
    }
}